; RUN: opt -enable-new-pm=false --cj-barrier-opt -S < %s | FileCheck %s
; RUN: opt -passes=cj-barrier-opt -S < %s | FileCheck %s

%KlassInfo.1 = type { i32, i32, %BitMap*, i8*, i8**, i64*, i64*, i8*, i64*, i32, [1 x i8*] }
%"ObjLayout._ZN11net$FS$http6ServerE" = type { %"ObjLayout._ZN11std$FS$core6ObjectE", i8 addrspace(1)*, i8 addrspace(1)*, i64, i8 addrspace(1)*, i8 addrspace(1)*, i8 addrspace(1)*, i8 addrspace(1)*, %"record._ZN11net$FS$http15TransportConfigE", %"record._ZN11std$FS$core6OptionIR_ZN10net$FS$tls15TlsServerConfigEE", %"record._ZN11std$FS$time8DurationE", %"record._ZN11std$FS$time8DurationE", %"record._ZN11std$FS$time8DurationE", %"record._ZN11std$FS$time8DurationE", i64, i64, i32, i32, i32, i32, i32, i1, %_ZN07ClosureE, %"record._ZN11net$FS$http17ServicePoolConfigE", i8 addrspace(1)* }
%"ObjLayout._ZN11std$FS$core6ObjectE" = type { %ObjLayout.Object }
%ObjLayout.Object = type { %KlassInfo.0* }
%BitMap = type { i32, [0 x i8] }
%KlassInfo.0 = type { i32, i32, %BitMap*, i8*, i8**, i64*, i64*, i8*, i64*, i32, [0 x i8*] }
%"record._ZN11net$FS$http15TransportConfigE" = type { %"record._ZN11std$FS$time8DurationE", %"record._ZN11std$FS$time8DurationE", %"record._ZN11std$FS$core6OptionIlE", %"record._ZN11std$FS$core6OptionIlE", %"record._ZN13std$FS$socket21SocketKeepAliveConfigE" }
%"record._ZN11std$FS$time8DurationE" = type { i64 }
%"record._ZN11std$FS$core6OptionIlE" = type { i1, i64 }
%"record._ZN13std$FS$socket21SocketKeepAliveConfigE" = type { %"record._ZN11std$FS$time8DurationE", %"record._ZN11std$FS$time8DurationE", i32 }
%"record._ZN11std$FS$core6OptionIR_ZN10net$FS$tls15TlsServerConfigEE" = type { i1, %"record._ZN10net$FS$tls15TlsServerConfigE" }
%"record._ZN10net$FS$tls15TlsServerConfigE" = type { i64, i64, %"record._ZN11std$FS$core5ArrayIR_ZN11std$FS$core6StringEE", %"record._ZN11std$FS$core5ArrayIR_ZN11std$FS$core6StringEE", %"record._ZN11std$FS$core5ArrayIR_ZN11std$FS$core6StringEE", %"record._ZN11std$FS$core6OptionIT2_R_ZN11std$FS$core5ArrayIC_ZN14crypto$FS$x50915X509CertificateEEC_ZN14crypto$FS$x50910PrivateKeyEEE", %record._ZN014Enum-Common_IXE, i64 }
%"record._ZN11std$FS$core5ArrayIR_ZN11std$FS$core6StringEE" = type { i8 addrspace(1)*, i64, i64 }
%"record._ZN11std$FS$core6OptionIT2_R_ZN11std$FS$core5ArrayIC_ZN14crypto$FS$x50915X509CertificateEEC_ZN14crypto$FS$x50910PrivateKeyEEE" = type { i1, %"T2_R_ZN11std$FS$core5ArrayIC_ZN14crypto$FS$x50915X509CertificateEEC_ZN14crypto$FS$x50910PrivateKeyEE" }
%"T2_R_ZN11std$FS$core5ArrayIC_ZN14crypto$FS$x50915X509CertificateEEC_ZN14crypto$FS$x50910PrivateKeyEE" = type { %"record._ZN11std$FS$core5ArrayIC_ZN14crypto$FS$x50915X509CertificateEE", i8 addrspace(1)* }
%"record._ZN11std$FS$core5ArrayIC_ZN14crypto$FS$x50915X509CertificateEE" = type { i8 addrspace(1)*, i64, i64 }
%record._ZN014Enum-Common_IXE = type { i64, i8 addrspace(1)* }
%_ZN07ClosureE = type { i8*, i8 addrspace(1)* }
%"record._ZN11net$FS$http17ServicePoolConfigE" = type { i64, i64, i64 }
%"record._ZN11std$FS$core6StringE" = type { %"record._ZN11std$FS$core5ArrayIhE", i64 }
%"record._ZN11std$FS$core5ArrayIhE" = type { i8 addrspace(1)*, i64, i64 }
%Unit.Type = type { i8 }
%"_ZN11net$FS$http13HttpExceptionE.objKlass.reflectType" = type { i32, i32, i32, i32, i32, i8* }

@"$const_cjstring.293" = internal constant { { i8 addrspace(1)*, i64, i64 }, i64 } { { i8 addrspace(1)*, i64, i64 } { i8 addrspace(1)* addrspacecast (i8* bitcast ({ i8*, i64, [28196 x i8] }* @"$const_cjstring_data.0" to i8*) to i8 addrspace(1)*), i64 21790, i64 38 }, i64 0 }
@"$const_cjstring_data.0" = internal constant { i8*, i64, [28196 x i8] } { i8* bitcast (%KlassInfo.0* @roUInt8.arrayKlass to i8*), i64 28196, [28196 x i8] c"request header Upgrade is only supported in method upgrade or upgradeFromClientonly HTTP/1.1 support upgraderequest header must contain Upgrade headernot supported protocolonly the upgrade from HTTP1_1 and HTTP2_0 to WebSocket is supported.Response's Location header can only contain a single URI-referenceinvalid cookie pathinvalid cookie maxAgeinvalid cookie namehttponlysecureinvalid cookie domainmultipart/form-dataget connection failedinvalid url address or proxy address port:[HttpClient1#request] request host: request cannot contain content[HttpServer1#process] Exception during process: [HttpEngineConn1 readTimer] read request timeout[HttpEngineConn1 readHeaderTimer] read header timeout[HttpServer1#consumeRequestAndWriteResponse] failed: [HttpEngineConn1#writeResponse] write response timeout[HttpEngineConn1#consumeRequest]: finish read body[HttpEngineConn1#consumeRequest]: start read unfinished bodyonly HTTP/1.1 or HTTP/2.0 to WebSocket upgrade is supportedupgrade to websocket failed, the connection has been upgraded.the upgrade request lacks sec-websocket-key header fieldthe upgrade request's sec-websocket-version must be 13the upgrade request's origin is not allowed by server[HttpEngineConn1#writeResponse] response:\0D\0A[HttpEngineConn1#checkResponse] The final status code cannot be 100The body is not allowed in this scenarioThe connection is disconnected response cannot be written.[HttpEngine1#sendRequest] Client1_1 connection failed, reconnect and resend requestClient1.1 write request timeout and the connection is closed.[ConnNode#sendRequestTimeOut] Client1.1 read response [ConnNode#sendRequestTimeOut] Client1.1 send request bodyPATCH[HttpServer2#serve] Http/2.0 serve...[HttpServer2#mainThread] connection closed, read thread returned[HttpServer2#mainThread] exchange preface failed, unexpected frame on idle stream , which is set by server[HttpServer2#readFrames] received frame: received trailers without streamEnd flaginvalid trailer field, [HttpServer2#handleRequests] connection closed, handle thread returned[HttpServer2#handleRequests] handle thread init[Stream#handle] handle failed, Failed to fetch data, the connection or stream is closedcontent too largecontent-length and transfer-encoding can not be set togetherthe last value of transfer-encoding must be chunkedInvalid request line, more than three elements: [HttpEngineConn1#checkResponse] response headers: Invalid request target, request line: write response timeout on stream application/x-www-form-urlencodedmalformed trailer field in header[Stream#processHeaders] cancel read header timer when received headers on stream malformed request, malformed request, invalid trailer value in header, set queuePriority = [Stream#checkAndSetRequestHeaders] stream malformed request, value of :authority and host should be the samemalformed request, te header field must not contain any value other than \22trailers\22malformed request, h2 headers should not contain Invalid request method, request line: malformed request, h2 headers should be lower cases should procedure headersmalformed request, h2 pseudoHeaders No host in request URLNot HTTP protocol scheme: push request lostresponse queue closedupgrade to websocket failed, websocket extensions not supported yet[HttpEngineConn1#checkResponse] status line: upgrade to websocket failed, invalid URL scheme, the scheme must be ws or wssThe server doesn`t support HTTP/2[HttpClientEngine2#request] write request on transport error on stream: client2_0 receive response for stream Malformed responsestream closedtext/plain; charset=utf-8transport error on connection: [HttpEngineConn1#readHeaderFields] header line: content-length should not be negativeThe filename field contains \22..\22H2 body brokencookie2Filename not foundNo `:` in headercontent-disposition not foundhost should be and only oneinvalid value for expectstatus of response to upgrade request must be 101, if upgraded successfullythe handshake response has wrong subprotocolthe handshake response must have one or null subprotocol[Client#doRequest] redirect response: \0Asec-websocket-protocolthe status code should be 200, but received single header size out of limit the handshake response lacks Connection: Upgrade header fieldthe handshake response lacks Upgrade: websocket header fieldH2 upgrade failed, since ALPN negotiate failed[Client#doRequest] start send request: \0A[Client#getClient] Using HTTP/2 client[ClientStream#decodeResponseHeader] decode header ok[Client#getClient] Using HTTP/1.1 clientHTTP/2 is not enabled[HttpClientEngine2#send] start new stream,id:, please wait a secondrequest headers must contain host field100-continue[ClientStream#writeRequest] start write request of stream: the upgrade request's sec-websocket-key header value is invalid[ClientStream#writeHeaders] finish write header of stream: sec-websocket-accepthost not setredirect loop exceed 10 timesunknown body size\0D\0Abody size: 0\0D\0Acontent-length should not has different values[ClientStream#decodeResponseHeader] start decode headersThe port number is not set.The IP address number is not set.initial window size should not exceed 2^31-1, but got client2_0 write request timeout] [Server#serve] failed to submit task servicing a client connection, [Server#serve] failed to serve a client connection, [Server#serve] serve client connection beginin http/2 build a tunnel is supported only when request method is CONNECT[Server#serve] bindAndListen(pool is busy, waiting...[CoroutinePool#submit] Created new worker, current size/capacity: worker is free[Server#close] Server already closed[Server#closeGracefully] Server already closed[Server#closeGracefully] Server closing...CANGJIEUSERAGENT_1_1Connection closed.[CoroutinePool#submit] Pool is busy, discard taskFailed to fetch data, the connection is closed[HttpClientEngine2#sendRequestFrames] SocketException during sending request: [HttpClientEngine2#sendRequestFrames] connection exception occurred: [HttpClientEngine2#sendRequestFrames] send frame [HttpClientEngine2#sendRequestFrames] send cached fieldsFrame: [HttpServer2#writeFrames] connection closed, write thread returned[HttpServer2#writeFrames] write thread initshould not receive PushPromise[Client#doRequest] request finished, response: \0A[HttpClientEngine2#receiveResponse] engine already quit, ignore SocketException[HttpClientEngine2#receiveResponse] connection exception occurred when reading response: [HttpClientEngine2#receiveResponse] stream exception occurred when reading response: [HttpClientEngine2#receiveResponse] receive frame:unknown global frame[HttpClientEngine2#postProcessGlobalFrame] received unexpected global frame: Must use https scheme for HTTP/2 requestthis frame should not appear [HttpServer2#writeFrames] cancel write timer after write fields (headers or trailers) on stream [HttpServer2#writeFrames] write frame: a TRACE request can not contain content[HttpServer2#writeFieldsFrame] write frame: HTTP/2 FieldsFrame has already been accessed..Encoder#encode] header:(the upgrade request lacks sec-websocket-version header fieldresponse header lost), NameIndex(), EntryIndex(.Encoder#encode] sensitive header:(0001\09+-------------------------------+[Stream#processHeaders] cancel read timer when received headers on stream [ClientStream#writeRequest] finish write trailer of stream:  |` -->[ConnNode#sendRequestTimeOut] Client1.1 send request headerInvalid prefix: Invalid strValue: invalid chunked data closed, write response failedtrailer section can not contain raw CRthis client has already closed[Client#resolveCookie] Store cookie from domain:Invalid lineThe Tls config cannot contain null character!HTTP/2 connection initial failedreadLine too longHas Priority: Some([ConnNode#sendBody] the content-length is wrongno more data frames can be sent after sending a Close frameinvalid close status codeinvalid frame type, the type must be Text, Binary, Close, Ping, Pong[Stream#writePush] should not call server push on push stream parameter out of range unexpected Continuation on stream initialize h2 connection failed, settings frame is requiredthe upgrade request to websocket must be a GET requestinitialize h2 connection failed, client preface is required[ConnNode#sendRequestTimeOut] Client1.1 send body failed, since Payload length exceed settingsIllegal data paddingIllegal headers paddingread buffer size can not be zero!Illegal push frameIllegal paddingGoaway should have at least 8 bytes payloadIllegal priority_update frame[HttpEngineConn1#checkResponse] HTTP/1.0 response is not supportedPayload length overflow[ClientStream#writeRequest] maxFrameSize=[ClientStream#writeRequest] writing body size = Header field too long[Stream#writeBody] server stream send data to queue, size [HttpServer2#exchangePreface] initialize h2 connection succeedreceiving a control frame has a payload length more than 125 bytesscheme must be https! stop:receiving an invalid mask messageInvalid method: all control frames must have a payload length of 125 bytes or lessinvalid status code, start is The size of Array is CANGJIEUSERAGENT_2_0 is not equal to array size:Range size:, step should be 1received headers and continuation frame on stream trailer must have streamEnd flagCall readRaw & writeRaw for tunnelsend header in Open state, but request don`t have trailerHTTP/2 client must have a tls config[Client#doRequest] redirect url is [ClientBuilder#build] max concurrent streams num is recommended to be over 100MaxFrameSize should between 2^14 and 2^24-1InitialWindowSize should between 1 and ?:80:443[HttpClientEngine2#processStream] connection exception occurred: [HttpClientEngine2#processStream] get stream failed Illegal setting lengthreceive data when remote closed, current window:worker is full[HttpClientEngine2#sendWindowUpdate] send global window_update:[Stream#onDataRead] connection closed, write WINDOW_UPDATE frame failedinvalid response status codeIllegal headers frame[Stream#onDataRead] purge stream when read data with streamEnd on stream , status is received data frame on stream body size exceeds content-length must not generate a 100-continue expectation in a request that does not include contentframeSize must > 0payload length of data frame exceeds window on stream [HttpServer2#sendWindowUpdate] connection closed, send WINDOW_UPDATE frame failedIllegal HTTP/2 setting SettingsMaxFrameSize value:Illegal HTTP/2 setting SettingsInitialWindowSize value:[Stream#onFieldsRead] purge stream when read headers with headerEnd on stream Unknown HTTP/2 settingread window update frame on idle streamreceived invalid frame on stream 0invalid client settings, SettingsInitialWindowSize should not exceeds 2^31invalid client settings, SettingsEnablePush should be 0 or 1the upgrade request lacks Upgrade: websocket header fieldsettings with ack should not have payload exceeds max valueSettingsInitialWindowSize cause remote window of stream  exceeds 2^31-1WINDOW_UPDATE frame cause remote window on stream RstStream frame payload illegal value:stream id used upthe status code should be 101, but received outputQueue closed while writing bodyIllegal header frame finished, wait for receiving responseunexpected frame to write[HttpEngineConn1#checkResponse] the body should be empty[ClientStream#writeRequest] finish write body of stream: [ServerBuilder#build] max concurrent streams num is recommended to be over 100[Stream#onDataWrite] write data with streamEnd on open stream write data frame on [Stream#onHeadersFieldsWrite] purge stream when write headers with streamEnd on stream [Stream#writeResponse] status of final response should not be 100write headers frame on received frame on stream read request timeout on stream [Stream#startReadTimer] set read header timer, readTimeout = Invalid field line: HpackExceptionunblock framecapacity should greater than 0, but got readHeaderTimeout not set yetClosed[HttpClient2#close] client closedExpectation Failedunexpected frame: HttpConnectionExceptionframe size exceeds max frame size PongWebFrame:schemePingWebFrameupgrade to websocket failed, a response has been sent to the client.BinaryWebFramethe upgrade request to websocket on http/2.0 must be a CONNECT request, bufferLen:no settings in queue when receive ackThe result would be greater than UInt32.Max.The result would be less than UInt32.Min.the handshake response lacks Sec-Websocket-Accept header field.htm*the upgrade request to websocket must be an HTTP/1.1 or higher requestWINDOW_UPDATE frame cause remote window exceeds 2^31-1 on connection levelCopy length out of boundsFailed to update dynamic table size, new size: please use connect method to send a CONNECT requestHalfClosedLocal[Client#doRequest] request auto redirect[HttpClientEngine2#receive] start construct response of stream status line or header section can not contain raw CRJuncontent-languageReservedLocal, but found buffer:push stream id exceeds 2^31-1viatext/html; charset=utf-8[Stream#onDataWrite] purge stream when write data with streamEnd on stream Total size:content-range.htmlheaders size shouldn't be negative, got refererproxy-authorizationAn exception has occurred:Increment: CANGJIE-SERVER[Stream#writeHeader] set write timer, writeTimeout = if-unmodified-since[HttpEngineConn1#writeResponse writeTimer] write response timeoutoutputQueue closed while writing headersif-modified-sinceUnknownWebFrame.pdfinvalid size of HashMap: Length Illegal step www-authenticateHttpTimeoutException[ConnNode#sendRequestTimeOut readTimer] Client1.1 read response timeoutFeb.jpgif-matchUnsupported Media Typequeue capacity should greater than 0, but got accept-rangesNo Contentaccept-language exceeds the limit: [CoroutinePool#taskEnqueue] Endinvalid client settings, SettingsMaxFrameSize should be in range [2^14..2^24-1]500404Illegal multipart header valueif-none-matchLast Stream Id: expires204TLS out of SettingsMaxHeaderListSize :Illegal push padding[Server#protocolService] got TlsSocketpseudo header field \22:protocol\22 should be single valued and the value should be \22HTTP\22, \22TLS\22, \22WebSocket\22, \22Websocket\22, \22h2c\22, \22connect-udp\22 or \22connect-ip\22Opaque data must be 8 bytesproxy-authenticateIllegal HTTP/2 setting value:POST.pngtext/xml; charset=utf-8invalid cookie expiresimage/webp[CoroutinePool#submit] Create new workerService UnavailableConnection terminated by client.[HttpServer2#sendSettings] connection closed, send Settings frame failed[Stream#waitIfWindowNegative] server stream [HttpClientEngine2#sendRequestFrames] write thread startstream initiated by client should be identified with odd num[Stream#startReadTimer] set read header timer, readHeaderTimeout = application/wasm.wasmsocket is closed.svgThe result would be less than UInt16.Min.image/png.mjs.HeaderTable#reduceSizeTo] new limit: connection closed, write trailer failed.jsonhttp/1.0PushPromise Frame [ Unavailable For Legal Reasonsthe upgrade request lacks Connection: Upgrade header fieldreceive headers frame on state setting is nonethe upgrade request lacks Origin fieldsize of BlockingQueue should be equal or greater than Moved PermanentlyProtocol unknown, num of active client streams exceeds SettingsMaxConcurrentStreams, which is set by serverstrict-transport-security[Stream#onRSTRead] stream received rst frame, stream id: Read body timeout and the connection is closed..webpMethod Not AllowedFailed to execute task, coroutine pool is closedSunreceiving a message with invalid frame typehttp://Invalid size of LinkedList: Unauthorized.avifinvalid size of ArrayList: \22>last-modifiedPermanent RedirectOPTIONS, GET, HEAD, POST, PUT, DELETEapplication/pdf[Client#setCookie] Add cookie to requestFound), NoneIndex ]CloseWebFramePartial Content[Server#close] Server closedPayment Requiredyyyy-MM-ddTHH:mm:ssOOOOMulti-Statusimage/svg+xmlkeep-alivestream id reaches the max, 2^31 - 1Use ProxyContinueLength Required[HttpClientEngine2#onGoawayRead] HTTP/2 client received goaway, error code:Not AcceptableEarly Hints[HttpClientEngine2#startReceiveLoop] read thread startRequest URI Too LongInvalid padding size: LockedIllegal odd IdHttpException[HttpServer1#process] Exception due to read request body or trailer: Bad GatewaySrcStart is greater than or equal to the size of this arrayConflictNot Foundstream is closed when waiting window update on stream Request Entity Too LargeThe result would be less than UInt8.Min. remoteWindow=Not ExtendedmaxRequestHeaderSize not set yetFile already existupgrade to websocket failed, no host in request URLToo Earlyproxy-connectionuser-agentstatus of response to CONNECT request must be 2XX, if the tunnel is built successfullyWhen step is Casting Infinite or NaN value to integer.sec-websocket-extensionserrorCode: EndHeader: http/1.1Incorrect version: .cssBad Requestwindow over flowmethod should be tokensmax-forwards[HttpClientEngine2#sendRequestFrames] stream exception occurred: headers frame can only send in Idle or Open or HalfClosedRemote9.gifcontent-length or transfer-encoding should be set if there is a body206Invalid request method: should not set timeout on h2 streamu=The result would be less than Int32.Min., header:(chunked should not be set more than onceWebSocketExceptionProcessingthe handshake response has a wrong accept string#encodeString] `invalid hex stringOvershift: Negative shift count!Reduce size is not supported[Client#doRequest] h2 negotiate failed, and try h1 request again[HttpClientEngine2#exchangePreface] HTTP/2 connection initial successnot Connect response, call readLoop Detected which cannot be upgraded to websocket, length is Gone[Stream#onDataRead] cancel read timer after read body on stream cache-controlFailed to decode String, header string size:\09| Unprocessable Entity.xml index=MonUpgrade Required[]Temporary Redirect\00ReservedRemote\09+---+---------------------------+; Securewrote body size less than declared content-lengthIllegal stream idReset Contentpriority not supported:pathHTTP/1.0 request is not supportedNegotiateExceptionreadTimeout not set yetmax frame size should not be under 2^14 or over 2^24-1Overshift: Value of right operand is greater than or equal to the width of left operand!already responded[ClientStream#constructResponse] read continuation response400content-locationinvalid close payload[HttpServer2#close] connection closing, received window update frame on idle streamMultiple Choices[Stream#processHeaders] cancel read header timer and read timer when received trailers on stream OKlinkRequest Header Fields Too LargeTextWebFrametext/javascript; charset=utf-8, staticTableSize: The result would be greater than Int64.Max.illegal header, priority urgency should be in range 0 ~ 7, inclusiveunknown stream :Malformed multipart bodyNot Implemented0123456789abcdefNon-Authoritative InformationThe result would be greater than UInt16.Max.Switching Protocols wait for window_update, current window is negative: EndStream: ThuNot supported content-disposition typeI'm a teapotValue does not exist!\0Aindex: \09| H | Value Length: the websocket connection is failed, since Precondition RequiredToo Many RequestsRequested Range Not Satisfiableset-cookieMust have stream dependency id if priority flag setGateway TimeoutNegative copy length[client2_0] stream remote window is zeroIllegal window update frame, payload length should be 4Internal Server Errorimage/gifForbidden[HttpServer2#waitStreamComplete] connection closed gracefullyInvalid request version, request line:  and the end is invalid header name: the logic of content-length and transfer-encoding is incorrect.Variant Also Negotiateswrite response end, close stream image/jpegPrecondition FailedIllegal srcDecIM Used&lt;[HttpClientEngine2#sendRequestFrames] exception occurred in write thread: Promised Stream: Misdirected Request.jpegUnsupported msg type!Insufficient Storage[HttpClientEngine2#createPushStream] received server push on id:too many connections to the same server!, start:preheat size should between 0 and \09| 0 | Value Length: Fields Frame for id:gzip, deflate, stream.status: HttpStatusExceptionClient Stream; Path=[HttpClientEngine2#sendRequestFrames] engine already quit, ignore SocketExceptionIllegal increment/index.htmlResponse missing Location header, status code: Already Reportedmeet unexpected frame: Failed to decode string: Weight: The result would be less than Int64.Min.ping timeout!FriIllegal idJanContinuationWebFrameNetwork Authentication Requiredunexpected ack settingsMarAcceptedThe result would be greater than Int32.Max.[ConnNode#sendRequestTimeOut] connection was not returned to connPoolAprreceive data in state content-typethe poolSize must > 0[HttpClientEngine2#receiveResponse] SocketException during receiving response: connection closed, write body failedMaythe only expectation supported yet is 100-continue[Server#closeGracefully] Server closedws meet unexpected frame , should be 0 or 1[HttpClientEngine2#processStream] stream exception occurred: AugWedvarysize of initial settings exceeds default max frame size text/css; charset=utf-8[HttpClient2#request] start engine to wrong http version The node is not a member of this LinkedList.Proxy must have http scheme.:statusretry-aftercontent-encoding[HttpServer2#onWindowUpdateRead] connection closed, send internal frame failedJulOctNovapplication/json[HttpServer1#process] start handle req: Not Modified.HeaderTable#insert] index: Request Timeoutimage/avifcontent-length invalidMethodUnsupportedExceptionwrite data in HttpStreamExceptiondivThreadPoolRejectExceptionFailed to get from DummyFutureTaskFailed to get from FutureTask, task cancelled[HttpEngine1#getConn] Client1_1 get conn from poolconnection closed, send push request failedunexpected push id<a href=\22StreamingSocket instance upgraded from h2 stream not support toString[HttpClient2#init] HttpClient2 initial successPrioritized Stream id: The TLS certificate is not configured., toWrite payloadLen:Server instance not set yetread use empty bufThe connection is upgraded and response cannot be written.No such file or directory.Pad Length: Redirect url cannot be emptyThe body cannot be sent in chunked mode in HTTP/1.0valid status codes are within the range of 100 to 599access-control-allow-originthe value of the step should not be zero.\0Athe handshake response has a wrong Upgrade header fieldbad request[HttpEngine1#returnConn] Client1_1 returnConn[HttpEngine1#returnConn] Client1_1 return connNode to connPoolinvalid response status line, errorCode: invalid cookie valuereceiving a control frame that is fragmentedThe result would be less than UInt64.Min.The result would be greater than UInt64.Max.unreachable codeFailed to decode data, next byte required but not found[HttpServer2#waitStreamComplete] graceful closing timeoutaccept-encodingFailed Dependency] [Server#serve] accept a client connectionFailed to decode integer, number too largeArray negative index accessDstStart is greater than or equal to the size of the target array[HttpServer2#onSettingsWrite] connection closing, wait ack settings timeoutTLS must be configured when HTTPS requests are sent.headers and continuation frames should be continuous on connection level[HttpEngine1#connect] TLS handshake error, the connection is closed.[ConnNode#sendRequestTimeOut] Client1.1 write request timeout, dynamicTableSize:[HttpEngine1#getConn] Client1_1 get conn newno_proxyNO_PROXYpayloadLen of DATA frame exceeds local window on connection levelHTTPS_PROXYactive streams reach limit: http_proxy[Server#protocolService] got tls config, prepare to handshake.should not upgrade after write response[Server#protocolService] protocol: .decoderbody size shouldn't be negative, got Sep[HttpServer2#onGoawayRead] connection closing, received goaway frame, errCode = [HttpEngineConn1#writeResponse] response: Proxy Authentication Required, debugMsg = malformed request, pseudoHeaders must contain body size is less than content-length write push promise on writeTimeout not set yetread rstStream on idle streammalformed request, invalid pseudo header name 258EAFA5-E914-47DA-95CA-C5AB0DC85B11[HttpServer2#purgeStream] purgeStream, stream id: a CONNECT request is not supported by upgrade, size of streams: , evicted header:(304received rst frame on idle stream[ReqId: [HttpEngineConn1] logger not set yet&gt;&#34;Client1.1 read response timeout and the connection is closed.target HTTP/2 server doesn`t allow CONNECT methodmalformed host header[ClientStream#blockForWindowUpdate] stream wait for window update, current window:push frame read in status of response to CONNECT request must be 2XX, if tunnel is built successfully, debug msg:Ack settings frame can not have payload, current payloadLen:[HttpClientEngine2#waitWindow] connection wait for window update, current window: , fields: receive headers frame on state ClosedTuestream not found, id:; Domain=Got EOS! buffer: Headers Frame [     Out of memoryInvalid date number: connection closed, write header failed[Server#close] Server closing...[HttpEngineConn1#readRequestLine] request line: HTTP Version Not SupportedFailed to build bytes, should get byteLen:PriorityUpdateFrame Frame [ the hex number is too bigWindowUpdateFrame Frame [ Error Code: Ping Frame [ Ack: Padded: [HttpClient2#request] restart engine to should not call upgrade more than onceHeader End: The size of ArrayList is no ping in queue when receive ackStream Dependency: Settings Frame [ unexpected CONTINUATION frame on stream Settings {[Server#serve] serve client connection endUnexpected padding value 0RstStream Frame [ [HttpClientEngine2#close] HTTP/2 Client closed, error code is :method[ClientStream#onRstRead] stream received reset: , dynamicTableSize: , push id:[HttpClientEngine2#purgeStream] purge stream Continuation Frame [ refreshpseudoHeader [HttpServer2#sendGoaway] connection closed, send Goaway frame failedcontent-length and body length not matchData Frame [Basic [CoroutinePool#taskEnqueue] Begin, Failed to execute task, queue is closed[HttpServer2#writeFrames] cancel write timer after write body on stream if-range; Expires=The result would be greater than UInt8.Max.malformed request, scheme of h2 request must be httpsreceive push from unknown stream ; HttpOnlyDebug data: Failed to init queue, invalid capacity: extensions not supported yet, rsv must be 0ConcurrentException.encoder&amp;, i:Priority can't be negative or larger than Internal Server Error: invalid status codemalformed request, pseudo headers are not foundField value: the value of the step should be '1'maxRequestBodySize not set yet.Decoder#decode] index7: [HttpServer2#closeGracefully] closing connection gracefullyGoaway Frame [ [Stream#processHeaders] connection closed, discard request on stream [HttpServer2#onPingRead] connection closed, send Ping frame failed&#39;invalid size of BlockingQueue: dynamic table not empty but dequeue failedserver closing gracefullyaccept-charsethttps_proxyserver closing forciblysettings timeout!etagSee Other[HttpEngine1#close] close_begin_connNum: [HttpServer2#writeFrames] no enough window on connection level[HttpEngine1#close] close_end_connNum: [Stream#close]  , msg is BufferedConn([Stream#close] cancel all timer when close the stream , but the start is </a>[ClientStream#writeRequest] start write body of stream: , size: .Decoder#parseLiteral] indexinvalid capacity of ArrayList: Idle stream received push.HeaderTable#get] Invalid index: [HttpServer2#mainThread] read frame failed, , dynamic table size:, evicted count:too many 1xx responsesDynamic table size update MUST occur at the beginning of the first header blockPadLen: .Decoder#decode] Max size: malformed request, value of pseudo header \22:path\22 should not be emptyinvalid header value: TrailerHTTP_PROXYwww, dd MMM yyyy HH:mm:ss z; Max-Age=Invalid line contains bare CRinvalid port string: Error occurred when reading framesStatus code should be 3xx besides 304Invalid pathPath:  already registeredcontent-length should not be none!write push related to stream , num of active push streams exceeds SettingsMaxConcurrentStreams, which is set by clientid of new stream should be the largestmax-age[HttpEngineConn1#readRequest] exception: This client has already closed[Stream#close] connection closed, write rst failedread request headers timeout on stream " }
@"_ZN11net$FS$http13HttpExceptionE.objKlass" = weak_odr global %KlassInfo.0 { i32 36, i32 104, %BitMap* inttoptr (i64 -9223372036854775198 to %BitMap*), i8* bitcast (%KlassInfo.1* @"_ZN11std$FS$core9ExceptionE.objKlass" to i8*), i8** getelementptr inbounds ([4 x i8*], [4 x i8*]* @"_ZN11net$FS$http13HttpExceptionE.vtable", i32 0, i32 0), i64* bitcast ({ [23 x i8*], i32* }* @"_ZN11net$FS$http13HttpExceptionE.itable" to i64*), i64* null, i8* bitcast (%"_ZN11net$FS$http13HttpExceptionE.objKlass.reflectType"* @"_ZN11net$FS$http13HttpExceptionE.objKlass.reflect" to i8*), i64* bitcast ([34 x i8]* @"C_ZN11net$FS$http13HttpExceptionE.typeName" to i64*), i32 0, [0 x i8*] zeroinitializer }
@"C_ZN11net$FS$http13HttpExceptionE.typeName" = internal global [34 x i8] c"C_ZN11net$FS$http13HttpExceptionE\00", align 1
@"_ZN11std$FS$core9ExceptionE.objKlass" = external global %KlassInfo.1
@"_ZN11net$FS$http13HttpExceptionE.vtable" = internal global [4 x i8*] [i8* null, i8* bitcast (void (%"record._ZN11std$FS$core6StringE"*, i8 addrspace(1)*)* @"_ZN11net$FS$http13HttpException12getClassNameEv" to i8*), i8* bitcast (void (%"record._ZN11std$FS$core6StringE"*, i8 addrspace(1)*)* @"_ZN11std$FS$core9Exception11$messagegetEv" to i8*), i8* bitcast (void (%"record._ZN11std$FS$core6StringE"*, i8 addrspace(1)*)* @"_ZN11std$FS$core9Exception8toStringEv" to i8*)]
@"_ZN11net$FS$http13HttpExceptionE.itable" = internal global { [23 x i8*], i32* } { [23 x i8*] [i8* null, i8* null, i8* null, i8* null, i8* null, i8* null, i8* null, i8* null, i8* null, i8* null, i8* null, i8* null, i8* bitcast (void (%"record._ZN11std$FS$core6StringE"*, i8 addrspace(1)*)* @"_ZN11std$FS$core9Exception8toStringEv" to i8*), i8* null, i8* null, i8* null, i8* null, i8* null, i8* null, i8* null, i8* null, i8* null, i8* null], i32* null }
@"_ZN11net$FS$http13HttpExceptionE.objKlass.reflect" = internal global %"_ZN11net$FS$http13HttpExceptionE.objKlass.reflectType" { i32 8, i32 0, i32 0, i32 0, i32 0, i8* null }
@roUInt8.arrayKlass = weak_odr global %KlassInfo.0 { i32 2, i32 1, %BitMap* null, i8* bitcast (%KlassInfo.0* @array_int8.primKlass to i8*), i8** null, i64* null, i64* null, i8* null, i64* null, i32 0, [0 x i8*] zeroinitializer }
@array_int8.primKlass = weak_odr hidden global %KlassInfo.0 { i32 1, i32 1, %BitMap* null, i8* null, i8** null, i64* null, i64* null, i8* null, i64* @array_int8.uniqueAddr, i32 0, [0 x i8*] zeroinitializer }
@array_int8.uniqueAddr = weak_odr hidden global i64 0

declare i8 addrspace(1)* @CJ_MCC_NewObjectStub(i8*, i32)
declare void @CJ_MCC_StackCheck()
declare void @CJ_MCC_ThrowException(i8 addrspace(1)*)
declare void @MCC_SafepointStub()
declare void @"_ZN11net$FS$http13HttpException12getClassNameEv"(%"record._ZN11std$FS$core6StringE"*, i8 addrspace(1)*)
declare void @"_ZN11std$FS$core9Exception11$messagegetEv"(%"record._ZN11std$FS$core6StringE"*, i8 addrspace(1)*)
declare void @"_ZN11std$FS$core9Exception8toStringEv"(%"record._ZN11std$FS$core6StringE"*, i8 addrspace(1)*)
declare void @"_ZN11std$FS$core9Exception6<init>ER_ZN11std$FS$core6StringE"(i8 addrspace(1)*, i8 addrspace(1)*, %"record._ZN11std$FS$core6StringE" addrspace(1)*)
declare void @llvm.cj.gcwrite.struct.p0i8(i8 addrspace(1)*, i8 addrspace(1)*, i8*, i64)
declare void @llvm.lifetime.end.p0i8(i64, i8*)
declare void @llvm.lifetime.start.p0i8(i64, i8*)
declare void @llvm.memcpy.p0i8.p0i8.i64(i8*, i8*, i64, i1)
declare void @llvm.memcpy.p0i8.p1i8.i64(i8*, i8 addrspace(1)*, i64, i1)
declare void @llvm.memset.p0i8.i64(i8*, i8, i64, i1)

; CHECK: call void @llvm.memcpy.p1i8.p0i8.i64(i8 addrspace(1)* align 8 %12, i8* align 8 %9, i64 40, i1 false)

define void @foo(%Unit.Type* noalias nocapture readnone sret(%Unit.Type) %0, i8 addrspace(1)* %this, i8 addrspace(1)* nocapture readnone %"certChain$BP", %"record._ZN11std$FS$core5ArrayIC_ZN14crypto$FS$x50915X509CertificateEE" addrspace(1)* nocapture readonly %certChain, i8 addrspace(1)* %certKey) gc "cangjie" {
entry:
  call void @CJ_MCC_StackCheck()
  %enum.val.i = alloca %"record._ZN11std$FS$core6OptionIT2_R_ZN11std$FS$core5ArrayIC_ZN14crypto$FS$x50915X509CertificateEEC_ZN14crypto$FS$x50910PrivateKeyEEE", align 8
  %enum.val = alloca %"record._ZN11std$FS$core6OptionIR_ZN10net$FS$tls15TlsServerConfigEE", align 8
  %.sroa.0 = alloca %"record._ZN11std$FS$core5ArrayIC_ZN14crypto$FS$x50915X509CertificateEE", align 8
  %cfg = alloca %"record._ZN10net$FS$tls15TlsServerConfigE", align 8
  %x = alloca %"record._ZN10net$FS$tls15TlsServerConfigE", align 8
  %ifvalue = alloca %"record._ZN10net$FS$tls15TlsServerConfigE", align 8
  %1 = bitcast i8 addrspace(1)* %this to %"ObjLayout._ZN11net$FS$http6ServerE" addrspace(1)*
  %2 = getelementptr inbounds %"ObjLayout._ZN11net$FS$http6ServerE", %"ObjLayout._ZN11net$FS$http6ServerE" addrspace(1)* %1, i64 0, i32 9
  %3 = getelementptr inbounds %"record._ZN11std$FS$core6OptionIR_ZN10net$FS$tls15TlsServerConfigEE", %"record._ZN11std$FS$core6OptionIR_ZN10net$FS$tls15TlsServerConfigEE" addrspace(1)* %2, i64 0, i32 0
  %4 = load i1, i1 addrspace(1)* %3, align 1
  call cangjiegccc void @MCC_SafepointStub()
  br i1 %4, label %if.else, label %if.then

if.then:                                          ; preds = %entry
  %5 = getelementptr inbounds %"ObjLayout._ZN11net$FS$http6ServerE", %"ObjLayout._ZN11net$FS$http6ServerE" addrspace(1)* %1, i64 0, i32 9, i32 1
  %x.0..sroa_cast = bitcast %"record._ZN10net$FS$tls15TlsServerConfigE"* %x to i8*
  call void @llvm.memset.p0i8.i64(i8* nonnull %x.0..sroa_cast, i8 0, i64 152, i1 false)
  %6 = bitcast %"record._ZN10net$FS$tls15TlsServerConfigE" addrspace(1)* %5 to i8 addrspace(1)*
  call void @llvm.memcpy.p0i8.p1i8.i64(i8* noundef nonnull align 8 dereferenceable(152) %x.0..sroa_cast, i8 addrspace(1)* noundef align 8 dereferenceable(152) %6, i64 152, i1 false)
  %ifvalue.0..sroa_cast = bitcast %"record._ZN10net$FS$tls15TlsServerConfigE"* %ifvalue to i8*
  call void @llvm.memset.p0i8.i64(i8* nonnull %ifvalue.0..sroa_cast, i8 0, i64 152, i1 false)
  call void @llvm.memcpy.p0i8.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(152) %ifvalue.0..sroa_cast, i8* noundef nonnull align 8 dereferenceable(152) %x.0..sroa_cast, i64 152, i1 false)
  %7 = bitcast %"record._ZN10net$FS$tls15TlsServerConfigE"* %cfg to i8*
  call void @llvm.memset.p0i8.i64(i8* nonnull align 8 %7, i8 0, i64 152, i1 false)
  call void @llvm.memcpy.p0i8.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(152) %7, i8* noundef nonnull align 8 dereferenceable(152) %ifvalue.0..sroa_cast, i64 152, i1 false)
  %.sroa.0.0..sroa_cast8 = bitcast %"record._ZN11std$FS$core5ArrayIC_ZN14crypto$FS$x50915X509CertificateEE"* %.sroa.0 to i8*
  call void @llvm.memset.p0i8.i64(i8* nonnull %.sroa.0.0..sroa_cast8, i8 0, i64 24, i1 false)
  %.sroa.0.0..sroa_cast5 = bitcast %"record._ZN11std$FS$core5ArrayIC_ZN14crypto$FS$x50915X509CertificateEE" addrspace(1)* %certChain to i8 addrspace(1)*
  call void @llvm.memcpy.p0i8.p1i8.i64(i8* noundef nonnull align 8 dereferenceable(24) %.sroa.0.0..sroa_cast8, i8 addrspace(1)* noundef align 8 dereferenceable(24) %.sroa.0.0..sroa_cast5, i64 24, i1 false)
  %8 = addrspacecast %"record._ZN10net$FS$tls15TlsServerConfigE"* %cfg to %"record._ZN10net$FS$tls15TlsServerConfigE" addrspace(1)*
  %9 = bitcast %"record._ZN11std$FS$core6OptionIT2_R_ZN11std$FS$core5ArrayIC_ZN14crypto$FS$x50915X509CertificateEEC_ZN14crypto$FS$x50910PrivateKeyEEE"* %enum.val.i to i8*
  call void @llvm.lifetime.start.p0i8(i64 40, i8* nonnull %9)
  call void @llvm.memset.p0i8.i64(i8* nonnull align 8 %9, i8 0, i64 40, i1 false)
  %10 = getelementptr inbounds %"record._ZN11std$FS$core6OptionIT2_R_ZN11std$FS$core5ArrayIC_ZN14crypto$FS$x50915X509CertificateEEC_ZN14crypto$FS$x50910PrivateKeyEEE", %"record._ZN11std$FS$core6OptionIT2_R_ZN11std$FS$core5ArrayIC_ZN14crypto$FS$x50915X509CertificateEEC_ZN14crypto$FS$x50910PrivateKeyEEE"* %enum.val.i, i64 0, i32 0
  store i1 false, i1* %10, align 8
  %.sroa.0.0..sroa_idx = getelementptr inbounds %"record._ZN11std$FS$core6OptionIT2_R_ZN11std$FS$core5ArrayIC_ZN14crypto$FS$x50915X509CertificateEEC_ZN14crypto$FS$x50910PrivateKeyEEE", %"record._ZN11std$FS$core6OptionIT2_R_ZN11std$FS$core5ArrayIC_ZN14crypto$FS$x50915X509CertificateEEC_ZN14crypto$FS$x50910PrivateKeyEEE"* %enum.val.i, i64 0, i32 1
  %.sroa.0.0..sroa_cast3 = bitcast %"T2_R_ZN11std$FS$core5ArrayIC_ZN14crypto$FS$x50915X509CertificateEEC_ZN14crypto$FS$x50910PrivateKeyEE"* %.sroa.0.0..sroa_idx to i8*
  call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 8 %.sroa.0.0..sroa_cast3, i8* align 8 %.sroa.0.0..sroa_cast8, i64 24, i1 false)
  %.sroa.3.0..sroa_idx7 = getelementptr inbounds %"record._ZN11std$FS$core6OptionIT2_R_ZN11std$FS$core5ArrayIC_ZN14crypto$FS$x50915X509CertificateEEC_ZN14crypto$FS$x50910PrivateKeyEEE", %"record._ZN11std$FS$core6OptionIT2_R_ZN11std$FS$core5ArrayIC_ZN14crypto$FS$x50915X509CertificateEEC_ZN14crypto$FS$x50910PrivateKeyEEE"* %enum.val.i, i64 0, i32 1, i32 1
  store i8 addrspace(1)* %certKey, i8 addrspace(1)** %.sroa.3.0..sroa_idx7, align 8
  %11 = getelementptr inbounds %"record._ZN10net$FS$tls15TlsServerConfigE", %"record._ZN10net$FS$tls15TlsServerConfigE" addrspace(1)* %8, i64 0, i32 5
  %12 = bitcast %"record._ZN11std$FS$core6OptionIT2_R_ZN11std$FS$core5ArrayIC_ZN14crypto$FS$x50915X509CertificateEEC_ZN14crypto$FS$x50910PrivateKeyEEE" addrspace(1)* %11 to i8 addrspace(1)*
  call void @llvm.cj.gcwrite.struct.p0i8(i8 addrspace(1)* null, i8 addrspace(1)* %12, i8* nonnull %9, i64 40)
  call void @llvm.lifetime.end.p0i8(i64 40, i8* nonnull %9)
  %13 = bitcast %"record._ZN11std$FS$core6OptionIR_ZN10net$FS$tls15TlsServerConfigEE"* %enum.val to i8*
  call void @llvm.memset.p0i8.i64(i8* nonnull align 8 %13, i8 0, i64 160, i1 false)
  %14 = getelementptr inbounds %"record._ZN11std$FS$core6OptionIR_ZN10net$FS$tls15TlsServerConfigEE", %"record._ZN11std$FS$core6OptionIR_ZN10net$FS$tls15TlsServerConfigEE"* %enum.val, i64 0, i32 0
  store i1 false, i1* %14, align 8
  %15 = getelementptr inbounds %"record._ZN11std$FS$core6OptionIR_ZN10net$FS$tls15TlsServerConfigEE", %"record._ZN11std$FS$core6OptionIR_ZN10net$FS$tls15TlsServerConfigEE"* %enum.val, i64 0, i32 1
  %16 = bitcast %"record._ZN10net$FS$tls15TlsServerConfigE"* %15 to i8*
  call void @llvm.memcpy.p0i8.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(152) %16, i8* noundef nonnull align 8 dereferenceable(152) %7, i64 152, i1 false)
  %17 = bitcast %"record._ZN11std$FS$core6OptionIR_ZN10net$FS$tls15TlsServerConfigEE" addrspace(1)* %2 to i8 addrspace(1)*
  call void @llvm.cj.gcwrite.struct.p0i8(i8 addrspace(1)* %this, i8 addrspace(1)* %17, i8* nonnull %13, i64 160)
  ret void

if.else:                                          ; preds = %entry
  %18 = tail call noalias i8 addrspace(1)* @CJ_MCC_NewObjectStub(i8* bitcast (%KlassInfo.0* @"_ZN11net$FS$http13HttpExceptionE.objKlass" to i8*), i32 104)
  tail call void @"_ZN11std$FS$core9Exception6<init>ER_ZN11std$FS$core6StringE"(i8 addrspace(1)* %18, i8 addrspace(1)* null, %"record._ZN11std$FS$core6StringE" addrspace(1)* addrspacecast (%"record._ZN11std$FS$core6StringE"* bitcast ({ { i8 addrspace(1)*, i64, i64 }, i64 }* @"$const_cjstring.293" to %"record._ZN11std$FS$core6StringE"*) to %"record._ZN11std$FS$core6StringE" addrspace(1)*))
  %19 = getelementptr inbounds i8, i8 addrspace(1)* %18, i64 72
  tail call void @llvm.cj.gcwrite.struct.p0i8(i8 addrspace(1)* %18, i8 addrspace(1)* %19, i8* bitcast ({ { i8 addrspace(1)*, i64, i64 }, i64 }* @"$const_cjstring.293" to i8*), i64 32)
  tail call void @CJ_MCC_ThrowException(i8 addrspace(1)* %18)
  unreachable
}
